@import "reset.css";
@import "../font/iconfont.css";

#page{
    max-width: 750px;
    margin: 0 auto;
}

/*顶部*/
#header_top{
    height: .64rem;
    display: flex;
    background-color: #ff6040;
    padding: .45rem .12rem .32rem .33rem;
    justify-content: space-between;
    align-items: center;
    color: #ffdfd8;
    font-size: .3rem;
    p{
        span{
            &.iconfont{
                font-size: .3rem;
                color: #ffdfd8;
            }
        }
        &.iconfont{
            font-size: .3rem;
            color: #ffdfd8;
        }
        &:nth-child(2){
            margin: 0 1.23rem 0 2.61rem;
        }
        &:nth-child(3){
            width: 1.74rem;
            height: .64rem;
            border: 1px solid #ff8a6f;
            border-radius: .4rem;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            justify-content: space-around;
            position: relative;
            i{
                width: 1px;
                height: 0.37rem;
                background-color: #ff896e;
                position: absolute;
            }
        }
    }
}

/*头部*/
header{
    height: .64rem;
    display: flex;
    padding: 0 .24rem .16rem .26rem;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(#ff684c,#ff7a67);
    span{
        &.iconfont{
            font-size: .4rem;
            color: #ffffff;
        }
        
    }
    h1{
        width: 1.82rem;
        img{
            width: 100%;
        }
    }
    input{
        width: 3.4rem;
        height: .64rem;
        border: .02rem solid #e6e6e6;
        border-radius: .1rem;
        padding-left: 24px;
        box-sizing: border-box;
        &::placeholder{
            font-size: .26rem;
            color: #999999;
        }
    }
}

/*导航*/
nav{
    height: .6rem;
    display: flex;
    align-items: center;

    background: linear-gradient(#ff7a67,#ff8a7f);
    ul{
        width: 6.18rem;
        display: flex;
        justify-content: space-around;
        align-items: center;
        font-size: .26rem;
        background: url(../images/line.jpg) no-repeat right bottom;
        background-size: 1px .6rem;
        li{
            &.cur{
                font-size: .3rem;
                font-weight: bold;
                position: relative;
                .line{
                    width: .4rem;
                    height: .04rem;
                    background-color: #fff;
                    border-radius: .02rem;
                    position: absolute;
                    bottom: -.11rem;
                    left: .1rem;
                }
            }
            a{
                color: #fff3f2;                
            }
        }
    }
    p{
        color: #fff;
        font-size: .26rem;
        span{
            margin-left: .14rem;
            &.iconfont{
                font-size: .26rem;
            }
        }        
    }
}

/*海报*/
#banner{
    height: 4.3rem;
    img{
        height: 100%;
    }
}


/*列表*/
#list{    
    ul{
        display: flex;
        justify-content: space-around;
        height: 1.33rem;
        background-color: #ffffff;
        padding-top: .32rem;
        li{
            display: flex;
            flex-direction: column;
            align-items: center;
            img{
                width: 0.6rem;
            }
            p{
                margin-top: .13rem;
                color: #333333;
            }
        }
    }
    
}

/*内容*/ 
main{
    
    background-color: #f2f2f2;
    padding: 20px;
    box-sizing: border-box;
    .seckill{
        height: 3.5rem;
        
        display: flex;
        justify-content: space-between;
        .seckill_l{
            width: 3.5rem;
            height: 3.5rem;
            margin-right: .1rem;
            background: url(../images/shop_bg1.png) no-repeat;
            background-size: 100% 100%;
            padding: .22rem .19rem 0 .22rem;
            box-sizing: border-box;
            p{                
                &:nth-child(1){
                    height: .3rem;
                    margin-bottom: .23rem;
                    span{
                        &:first-child{
                            float: left;
                            color: #85a642;
                            font-size: .3rem;
                        }
                        &:nth-child(2){
                            float: right;
                            font-size: .18rem;
                            color: #333333;
                            vertical-align: top;
                            margin-top: .03rem;
                        }
                        &:nth-child(3){
                            float: right;                           
                            color: #444443;
                            font-size: .18rem;
                        }
                    }
                }
                &:nth-child(2){
                    font-size: .2rem;
                    color: #b1cc7a;
                    margin-bottom: .1rem;
                }
                &:nth-child(3){
                    span{
                        display: block;
                        float: left;
                        &:nth-child(2n+1){
                            width: .32rem;
                            height: .36rem;
                            color: #fff;
                            font-size: .2rem;
                            border-radius: .05rem;
                            background: linear-gradient(#86a744,#aec976);
                        }
                        &:nth-child(2n){
                            color:#8cac4b;
                            margin: 0 .04rem 0 .04rem;
                        }
                    }
                }
            }
        }
        .seckill_r{
            width: 3.5rem;
            height: 3.5rem;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            img{
                width: 100%;
            }
        }
    }
    .shop{        
        p{
            height: .85rem;
            color: #a7a7a7;
            font-size: .26rem;
            display: flex;
            justify-content: space-around;
            align-items: center;
            span{
                &.cur{
                    color: #ff6040;
                }
            }
            
        }
        ul{
            display: flex;
            justify-content: space-between;
            li{
                width: 1.6rem;
                img{
                    width: 100%;
                }
            }
        }
    }
}

/*尾部*/
footer{
    height: 1.66rem;
    border-top: 1px solid #cccccc;
    padding: .14rem 0 .16rem 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;  
    ul{
        display: flex;
        justify-content: space-around;
        li{
            display: flex;
            flex-direction: column;
            align-items: center;
            &.cur{
                color: #ff6040;
            }
            color: #acacac;
            font-size: .18rem;
            span{
                &.iconfont{
                    color: 999999;
                    font-size: .4rem;
                }
            }
            
        }
    }
    p{
        width: 2.7rem;
        height: .1rem;
        background-color: #000;
        border-radius: .05rem;
        margin-left: 2.4rem;
    }
}